import request from '@/utils/request'

export function getBankList(data) {
  return request({
    url:'Bank/BankList',
    method:'post',
    data
  })
}
export function addBank(data) {
  return request({
    url:'Bank/addBank',
    method:'post',
    data
  })
}
export function getMemberBank(data) {
  return request({
    url:'Bank/memberBank',
    method:'post',
    data
  })
}

export function getBankDetails(data) {
  return request({
    url:'Bank/bankDetail',
    method:'post',
    data
  })
}
//Bank/saveBank id
export function updateBank(data) {
  return request({
    url:'Bank/saveBank',
    method:'post',
    data
  })
}

export function addServiceQue(data) {
  return request({
    url:'Message/addQuestion',
    method:'post',
    data
  })
}
export function serviceQueRecord(data) {
  return request({
    url:'Message/msgList',
    method:'post',
    data
  })
}

export function answerList(data) {
  return request({
    url:'Message/answerList',
    method:'post',
    data
  })
}

export function answerQuestion(data) {
  return request({
    url:'Message/answerQuestion',
    method:'post',
    data
  })
}

export function bindEmail(data) {
  return request({
    url:'Message/saveEmail',
    method:'post',
    data
  })
}

export function updatePwd(data, type) {
  return request({
    url: type === '1' ? 'User/runSavePwd' : 'User/runSaveTwoPwd',
    method:'post',
    data
  })
}

export function seachYeji(data, type) {
  return request({
    url: !type ? 'User/teamMinyeji' : 'User/teamMaxyeji',
    method:'post',
    data
  })
}

//User/teamMaxyeji

//User/teamMinyeji